import {
  Checkbox,
  CheckboxGroup,
  Button,
    Image,
  TreeSelect,
  Field,
  Swipe,
  SwipeItem,
  Skeleton,
  PullRefresh,
  Badge,
  Step,
  Steps,
  Sidebar,
  SidebarItem,
  CellGroup,
  Uploader,
  NavBar,
  List,
  Icon,
  Collapse,
  CollapseItem,
  Tag,
  Tab,
  Tabs,
  CountDown,
  Col,
  Row,
  Loading,
} from "vant";

export default function vantRegister(app) {
  const components = [
    Checkbox,
    CheckboxGroup,
    Button,
      Image,
    TreeSelect,
    Field,
    Swipe,
    SwipeItem,
    Skeleton,
    PullRefresh,
    Badge,
    Step,
    Steps,
    Sidebar,
    SidebarItem,
    CellGroup,
    Uploader,
    NavBar,
    List,
    Icon,
    Collapse,
    CollapseItem,
    Tag,
    Tab,
    Tabs,
    CountDown,
    Col,
    Row,
    Loading,
  ];
  for (const component of components) {
    app.component(component.name, component);
  }
}
